package core
{
	import flash.display.Sprite;

	public class XUIGroup
	{
		public var group : Object;
			
		public function XUIGroup()
		{
			group = new Object;
		}
		
		public function destoryAll() : void
		{
			group = null;
		}
		
		public function add(id : String,uiDisplay : Sprite) : void
		{
			group[id] = uiDisplay;	
		}
		
		public function remove(id : String ) : void
		{
			delete group[id];
		}
		
		public function hasMeditor(id : String) : Boolean
		{
			if(group[id])
			{
				return true;
			}
			
			return false;
		}
	}
}